package com.free.wang.demo02.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

import com.free.wang.demo02.mapper.ScoreMapper;
import com.free.wang.demo02.entity.Score;

/**
 * @author admin
 * @Description ${Description}
 * @date 2020-07-04 16:22:00
 */
@Service
public class ScoreService {

    @Autowired
    private ScoreMapper scoreMapper;

    public int deleteByPrimaryKey(String sId, String cId) {
        return scoreMapper.deleteByPrimaryKey(sId, cId);
    }

    public int insert(Score record) {
        return scoreMapper.insert(record);
    }

    public int insertSelective(Score record) {
        return scoreMapper.insertSelective(record);
    }

    public Score selectByPrimaryKey(String sId, String cId) {
        return scoreMapper.selectByPrimaryKey(sId, cId);
    }

    public int updateByPrimaryKeySelective(Score record) {
        return scoreMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(Score record) {
        return scoreMapper.updateByPrimaryKey(record);
    }

}
